﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using AutoMapper;

using Happy.AutoMapper;
using Happy.Cms.Domain.Categories;
using Happy.Cms.Query.Categories;
using Happy.Cms.Application.Shares;

namespace Happy.Cms.Application.Categories.Mappers
{
    public sealed class CategoryViewProfie : Profile<CategoryView, Category>
    {
        protected override void Configure(IMappingExpression<CategoryView, Category> map)
        {
            base.Configure(map);

            map.AfterMap((x, y) =>
            {
                x.UpdateSeoInfo(y.SeoInfo);
            });
        }
    }
}
